package com.gzs.learn.payment.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gzs.learn.inf.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 支付请求对象 payment
 *
 * @author guanzhisong
 * @date 2021-08-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Payment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 支付流水号 */
    @TableId(value = "serial", type = IdType.INPUT)
    private Long serial;
    /** 支付订单号 */
    @Excel(name = "支付订单号")
    private Long orderId;
    /** 订单来源 */
    @Excel(name = "订单来源")
    private Integer orderFrom;
    /** 会员ID */
    @Excel(name = "会员ID")
    private Long memberId;
    /** 支付渠道 */
    @Excel(name = "支付渠道")
    private Integer channel;
    /** 支付金额(以分为单位) */
    @Excel(name = "支付金额(以分为单位)")
    private Long amt;
    /** 可退款金额 */
    @Excel(name = "可退款金额")
    private Long canRefundAmt;
    /** 支付商品描述 */
    @Excel(name = "支付商品描述")
    private String subject;
    /** 支付状态 */
    @Excel(name = "支付状态")
    private String status;
    /** 调用方名称 */
    @Excel(name = "调用方名称")
    private String clientName;
    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;
    /** 操作来源IP */
    @Excel(name = "操作来源IP")
    private String operatorIp;
    /** 创建时间 */
    private Date createTime;
    /** 更新时间戳 */
    private Date updateTime;
}
